
import React from 'react'
import { Provider } from 'react-redux'
import { Route ,Switch} from 'react-router-dom'
import App from './App'
import Page from './Page'
import Login from './Login'
import NoMatch from './NoMatch'


const Root = ({ store }) => (
   
  <Provider store={store}>
      
            <Switch>
            <Route  path="/"   exact  component={App} />
            <Route path="/page" component={Page} />
            <Route path="/Login" component={Login} />
            <Route  component={NoMatch} />
            </Switch>
          
  </Provider>
 
)
 
export default Root


// <React.Fragment>
// </React.Fragment>